package com.ala4.oxcafe.service;

import com.ala4.oxcafe.boot.page.PageDomain;
import com.ala4.oxcafe.entity.WarrantyOrder;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @author PING
 * @version 1.0.0
 * @date 2025/8/15 17:32
 */
public interface WarrantyOrderService {
    /**
     * 分页查询质保单
     *
     * @param pageDomain
     * @param warrantyOrder
     * @return
     */
    IPage<WarrantyOrder> warrantyOrderPage(PageDomain pageDomain, WarrantyOrder warrantyOrder);

    /**
     * 查询质保单明细
     *
     * @param warrantyId 质保单ID
     * @return
     */
    WarrantyOrder warrantyOrderInfo(Long warrantyId);

    /**
     * 微信用户查询质保单
     *
     * @return
     */
    List<WarrantyOrder> weChatUserAll();

    /**
     * 公开接口查询质保单
     *
     * @param phone 手机号
     * @return
     */
    List<WarrantyOrder> publicWarrantyUserPhone(String phone);
}
